/*
 * Copyright (c) 2020, 2025, keyila All rights reserved.
 *
 */
package com.clp.study.Test.TwentyOneTOThreeQ;

import io.swagger.models.auth.In;

import java.util.ArrayList;
import java.util.List;

/**
 * @author clp
 * @version 1.0
 */
public class EightA {

    private static List<Integer> list=new ArrayList<>();




    static {
        System.out.println("Static block");
       list.add(1);
        list.add(2);
    }

    public static void main(String[] args) {
        System.out.println("Main method");
        for (int i = 0; i <list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
